home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Science / Gnuplot 3.5 / docs / Makefile.in < prev    next >
Makefile  |  1993-11-03  |  3KB  |  158 lines

  1. # Makefile for GNUPLOT documentation
  2. #
  3. # Note that the top-level file for documentation is gnuplot.doc.
  4. # See README.
  5. #
  6. # To print manual:
  7. #    make gnuplot.dvi             (for latex)
  8. #    (print or view gnuplot.dvi)
  9. # OR
  10. #    make gnuplot.nroff           (for nroff)
  11. #    (print or view gnuplot.nroff)
  12. #   or
  13. #    make "TROFF=itroff" troff    (for troff; use your troff here)
  14. #
  15.  
  16. .NOEXPORT:
  17. SHELL = /bin/sh
  18.  
  19. srcdir = @srcdir@
  20. VPATH = @srcdir@
  21.  
  22. prefix = /usr/local
  23. exec_prefix = $(prefix)
  24. bindir = $(exec_prefix)/bin
  25. datadir = $(prefix)/lib
  26. mandir = $(prefix)/man
  27.  
  28. INSTALL = @INSTALL@
  29. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  30. INSTALL_DATA = @INSTALL_DATA@
  31.  
  32. CC     = @CC@
  33. DEFS   = @DEFS@
  34. CFLAGS = -O2
  35. LDFLAGS = -s
  36. LIBS = 
  37.  
  38. MAKEINFO = makeinfo
  39.  
  40. # substitute your troff command (and any flags) for this one
  41. TROFF=troff
  42.  
  43. # substitute your DVI to PostScript conversion program here
  44. DVIPS=dvips
  45.  
  46. # default is what is needed for interactive gnuplot
  47. default: gnuplot.hlp gnuplot.gih
  48.  
  49. ### [tn]roff documentation
  50. troff: gnuplot.ms titlepag.ms
  51.     tbl $(srcdir)/gnuplot.ms | eqn | $(TROFF) -ms
  52.  
  53. nroff: gnuplot.nroff
  54.  
  55. gnuplot.nroff: gnuplot.ms titlepag.ms
  56.     tbl $(srcdir)/gnuplot.ms | neqn | nroff -ms | col > gnuplot.nroff
  57.  
  58. ms: gnuplot.ms
  59.  
  60. gnuplot.ms: doc2ms gnuplot.doc
  61.     ./doc2ms $(srcdir)/gnuplot.doc gnuplot.ms
  62.  
  63. doc2ms: doc2ms.o
  64.     $(CC) -o $@ doc2ms.o $(LDFLAGS) $(LIBS)
  65.  
  66. ### LaTeX documentation
  67. tex: gnuplot.tex
  68.  
  69. gnuplot.tex: doc2tex gnuplot.doc
  70.     ./doc2tex $(srcdir)/gnuplot.doc gnuplot.tex
  71.  
  72. # this is how to make DVI files
  73. dvi: gnuplot.dvi gpcard.dvi
  74.  
  75. gnuplot.dvi: gnuplot.tex titlepag.tex toc_entr.sty
  76.     latex gnuplot
  77.     latex gnuplot
  78.  
  79. gpcard.dvi: gpcard.tex
  80.     tex gpcard
  81.  
  82. # this is how to make PostScript files
  83. # if pslatex has been installed, add "times" to titlepage.tex
  84. ps: gnuplot.ps gpcard.ps
  85.  
  86. gnuplot.ps: gnuplot.dvi
  87.     $(DVIPS) gnuplot
  88.  
  89. gpcard.ps: gpcard.dvi
  90.     $(DVIPS) gpcard
  91.  
  92. doc2tex: doc2tex.o
  93.     $(CC) -o $@ doc2tex.o $(LDFLAGS) $(LIBS)
  94.  
  95. # this is how to make gnuplot.hlp
  96. hlp: gnuplot.hlp
  97.  
  98. gnuplot.hlp: doc2hlp gnuplot.doc
  99.     ./doc2hlp $(srcdir)/gnuplot.doc gnuplot.hlp
  100.  
  101. # this is how to make gnuplot.gih
  102. gih: gnuplot.gih
  103.  
  104. gnuplot.gih: doc2gih gnuplot.doc
  105.     ./doc2gih $(srcdir)/gnuplot.doc gnuplot.gih
  106.  
  107. doc2gih: doc2gih.o
  108.     $(CC) -o $@ doc2gih.o $(LDFLAGS) $(LIBS)
  109.  
  110. # this is how to make Info documentation
  111. info: gnuplot.info
  112.  
  113. gnuplot.info: gnuplot.doc
  114.     perl $(srcdir)/doc2info.pl $(srcdir)/gnuplot.doc > gpltinfo.tex
  115.     $(MAKEINFO) --fill-column=80 gpltinfo.tex
  116.     rm -f gpltinfo.tex
  117.  
  118. tutorial: latextut/tutorial.tex
  119.     ( cd latextut; $(MAKE) )
  120.  
  121. # this is how to check the gnuplot.doc file
  122. check: checkdoc gnuplot.doc
  123.     ./checkdoc < $(srcdir)/gnuplot.doc
  124.  
  125. checkdoc: checkdoc.o
  126.     $(CC) -o $@ checkdoc.o $(LDFLAGS) $(LIBS)
  127.  
  128. # For Unix and MSDOS only
  129. install: gnuplot.gih
  130.     $(INSTALL_DATA) gnuplot.gih $(datadir)/gnuplot.gih
  131.  
  132. uninstall:
  133.     rm -f $(datadir)/gnuplot.gih
  134.  
  135. # for VMS only
  136. install-vms: gnuplot.hlp
  137.     $(INSTALL_DATA) gnuplot.hlp $(datadir)/gnuplot.hlp
  138.  
  139. # remove all derived files
  140. clean:
  141.     rm -f doc2ms gnuplot.nroff gnuplot.ms \
  142.               doc2tex gnuplot.tex gnuplot.dvi \
  143.               gnuplot.aux gnuplot.log gnuplot.toc \
  144.               gnuplot.ps gpcard.dvi gpcard.log gpcard.ps \
  145.               doc2hlp gnuplot.hlp \
  146.               doc2gih gnuplot.gih \
  147.               checkdoc *.o core a.out \
  148.               gnuplot.info* gpltinfo.tex
  149.     ( cd latextut; $(MAKE) clean )
  150.  
  151. mostlyclean: clean
  152.  
  153. distclean: clean
  154.     rm -f Makefile
  155.  
  156. realclean: distclean
  157.     rm -f TAGS
  158.